﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KindleComic
{
    public partial class ucComic : UserControl
    {
        public ucComic()
        {
            InitializeComponent();
            this.picComicCover.DoubleClick += UCComic_DoubleClick;
            this.lbComicAuthor.DoubleClick += UCComic_DoubleClick;
            this.lbComicName.DoubleClick += UCComic_DoubleClick;
            this.lbComicSource.DoubleClick += UCComic_DoubleClick;
            this.label1.DoubleClick += UCComic_DoubleClick;
            this.label2.DoubleClick += UCComic_DoubleClick;
            this.label4.DoubleClick += UCComic_DoubleClick;
            this.DoubleClick += UCComic_DoubleClick;

        }
        public event EventHandler ucDoubleClick;
        private void UCComic_DoubleClick(object sender, EventArgs e)
        {
            ucDoubleClick?.Invoke(this, e);
        }
        public string ComicName { get => this.lbComicName.Text; set { this.lbComicName.Text = value; } }
        public string ComicAuthor { get => lbComicAuthor.Text; set { this.lbComicAuthor.Text = value; } }
        public string ComicSource { get => this.lbComicSource.Text; set { this.lbComicSource.Text = value; } }

        public string ComicCover { get => this.picComicCover.ImageLocation; set { this.picComicCover.ImageLocation = value; } }
        public string ComicUrl { get; set; }
    }
}
